package ui.shape;

import com.fasterxml.jackson.annotation.JsonSubTypes;
import com.fasterxml.jackson.annotation.JsonTypeInfo;

@JsonTypeInfo(
		  use = JsonTypeInfo.Id.NAME,
		  include = JsonTypeInfo.As.PROPERTY,
		  property = "type"
		)
		@JsonSubTypes({
		  @JsonSubTypes.Type(value = Circle.class, name = "circle"),
		  @JsonSubTypes.Type(value = Square.class, name = "square")
		})
public abstract class Shape {}